package com.mifengkong.greendao.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by mc on 17/9/29
 */
@Entity
public class TextReleastAPI {
    @Id(autoincrement = true)
    private long id;

    @Property(nameInDb = "TEXT_ENVIRONMENT")
    private boolean testEnvironment;

    @Property(nameInDb = "PRE_ISSUED")
    private boolean preIssued;

    @Property(nameInDb = "USER_API")
    private boolean useAPI;

    public TextReleastAPI(boolean testEnvironment, boolean useAPI) {
        this.testEnvironment = testEnvironment;
        this.useAPI = useAPI;
    }

    public TextReleastAPI(boolean testEnvironment, boolean useAPI, boolean preIssued) {
        this.testEnvironment = testEnvironment;
        this.useAPI = useAPI;
        this.preIssued = preIssued;
    }

    @Generated(hash = 106824902)
    public TextReleastAPI(long id, boolean testEnvironment, boolean preIssued,
            boolean useAPI) {
        this.id = id;
        this.testEnvironment = testEnvironment;
        this.preIssued = preIssued;
        this.useAPI = useAPI;
    }

    @Generated(hash = 385203541)
    public TextReleastAPI() {
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public boolean getTestEnvironment() {
        return this.testEnvironment;
    }

    public void setTestEnvironment(boolean testEnvironment) {
        this.testEnvironment = testEnvironment;
    }

    public boolean getPreIssued() {
        return this.preIssued;
    }

    public void setPreIssued(boolean preIssued) {
        this.preIssued = preIssued;
    }

    public boolean getUseAPI() {
        return this.useAPI;
    }

    public void setUseAPI(boolean useAPI) {
        this.useAPI = useAPI;
    }
}
